package cn.tedu.lianxi1;

public class Text4 {

    public static void main(String[] args) throws ClassNotFoundException {
        Class a=Class.forName("cn.tedu.lianxi1.Tianshu");
        Class a2=Tianshu.class;
        Class a3=new Tianshu().getClass();
        System.out.println("a = " + a);
        System.out.println("a2 = " + a2);
        System.out.println("a3 = " + a3);
        method();
        method2();
    }

    public  static void method2() throws ClassNotFoundException {
        Class a=Class.forName("cn.tedu.lianxi1.Tianshu");
        Class a2=Tianshu.class;
        Class a3=new Tianshu().getClass();
        System.out.println("a = " + a);
        System.out.println("a2 = " + a2);
        System.out.println("a3 = " + a3);
    }

    public static void method() throws ClassNotFoundException {
        Class a=Class.forName("cn.tedu.lianxi1.Tianshu");
        Class a2=Tianshu.class;
        Class a3=new Tianshu().getClass();
        System.out.println("a = " + a);
        System.out.println("a2 = " + a2);
        System.out.println("a3 = " + a3);
    }

}
